package com.baike.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lbs
 * @since 2021-10-30
 */
@Data
@EqualsAndHashCode(callSuper = false) // 实现 AR 模式 要继承 Model 加上此注解可以消除警告  还要生成一个id
@Accessors(chain = true)
@TableName("tb_categories")
@ApiModel(value="TbCategories对象", description="")
public class TbCategories extends Model<TbCategories> implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "categories_id", type = IdType.AUTO)
    private Integer categoriesId;

    @ApiModelProperty(value = "父级分类")
    private Integer categoriesParentId;

    @ApiModelProperty(value = "分类名称")
    private String categoriesName;




}
